package za.um.td.state.client;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.jmex.game.state.BasicGameStateNode;
import com.jmex.game.state.GameState;

public class InputStateNode extends BasicGameStateNode<GameState> {
	private static final Logger LOG = Logger.getLogger(InputStateNode.class.getName());
	
	private static final String NAME = "InputStateNode";
	private static InputStateNode instance = null;
	
	private InputStateNode() {
		super(NAME);
		attachChildren();
		activateAllChildren();
	}

	private void attachChildren() {
		attachChild(LevelInputStateNode.createInstance());
	}

	public static InputStateNode getInstance() {
		if (instance == null) {
			instance = new InputStateNode();
		}
		return instance;
	}
	
	public void update(float tpf) {
    	super.update(tpf);
	}
	
}
